<ui:composition xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:pt="http://xmlns.jcp.org/jsf/passthrough">
	      
	<p:panel header="Login">
		<h:outputText rendered="#{param['loginerror']}" value="Errore di autenticazione" />
		<h:form id="login" pt:action="j_security_check" prependId="false">
			<h:panelGrid columns="2">
				<h:outputLabel value="Email:  " />
				<p:inputText id="j_username" name="j_username" />
				<h:outputLabel value="Password:  " />
				<p:password id="j_password" name="j_password" />
				<p:commandButton id="submit" value="Login" ajax="false" />
				<h:link value="Registrati" outcome="/registration"/>
			</h:panelGrid>
		</h:form>
	</p:panel>  
</ui:composition>